ifneq ($(KERNELRELEASE),)
	obj-m :=urlrule.o
	urlrule-objs = urlfilter.o nf_hook.o uf_ipv4.o uf_syscall.o uf_rule.o uf_rule_adv.o

else
	KDIR ?= /lib/modules/$(shell uname -r)/build
	PWD := $(shell pwd)

all:
	make -C $(KDIR) M=$(PWD) modules

clean:
	rm -rf *.o *.order *.mod.c *.symvers *.mod.o *.ko.unsigned
endif

